package com.imooc.bigdata.hos.core;

/**
 * @author liyuhui
 * @date 2018.10.25
 * @description The base class of all exception class.
 */
public abstract class HosException extends RuntimeException {
    public String errorMessage;

    public HosException(String message, Throwable cause) {
        super(cause);
        this.errorMessage = message;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public abstract int errorCode();

    public String errorMessage() {
        return errorMessage;
    }
}
